package com.lin.sqltool.model;

import java.util.ArrayList;
import java.util.List;

public class DatabaseInfoModel {

    private String name;

    private List<TableInfoModel> tables;

    public DatabaseInfoModel(String name) {
        this.name = name;
        this.tables = new ArrayList<>();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TableInfoModel> getTables() {
        return tables;
    }

    public void setTables(List<TableInfoModel> tables) {
        this.tables = tables;
    }

    public void addTable(TableInfoModel table) {
        this.tables.add(table);
    }
}
